#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QSettings>
#include <QPixmap>

namespace Ui {
	class MainWindow;
}

/*! \class MainWindow
 *  \brief Class giving the main window functionality
 *
 *  The sole role of this class is to connect signals from buttons
 *  of gui to slots inside it, to configure certain responses.
 */
class MainWindow : public QMainWindow { Q_OBJECT
	public:
		explicit MainWindow(QWidget *parent = 0);
		~MainWindow();
		void		run_client(int);
		void		close_client(int);
		bool		check_if_client_is_active(int);
		int		return_pid_of(int);
	private:
		Ui::MainWindow	*ui;
		QPixmap		image;
		// internal settings
		QSettings	settings;
		QString		path_to_ariaupdate;
		int		client_width;
		int		client_height;

	private slots:
		void 		directory_change();
		void		directory_check();
		void		configuration_save();
		void		run_client_1();
		void		run_client_2();
		void		close_client_1();
		void		close_client_2();
};

#endif
